import request from "./httpUtil.js"
import config from "./config.js"

const apis = {};

apis.login = (params) => request.postNoLoading(config.apiUrl.userCreate, params);
apis.userAction = (params) => request.postNoLoading(config.apiUrl.userAction, params);
apis.userJoin = (params) => request.postNoLoading(config.apiUrl.userJoin, params);
apis.userMove = (params) => request.postNoLoading(config.apiUrl.userMove, params);
apis.gameUpate = (params) => request.postNoLoading(config.apiUrl.gameUpate, params);
apis.gameInfo = (params) => request.postNoLoading(config.apiUrl.gameInfo, params);
apis.userState = (params) => request.postNoLoading(config.apiUrl.userState, params);
apis.userReady = (params) => request.postNoLoading(config.apiUrl.userReady, params);
apis.roleList = (params) => request.getNoLoading(config.apiUrl.roleList, params);
export default apis;